using System;
using System.Xml;
using System.Xml.Serialization;
using System.Collections.Generic;

namespace Dashboard
{
	public class Property
	{
		protected string name;
		protected string value;
		protected string type;
		
		public Property ()
		{
		}

		public Property (string name, string value)
			: this (name, "dc:string", value)
		{

		}

		public Property (string name, string type, string value)
		{
			this.name = name;
			this.type = type;
			this.value = value;
		}

		[XmlAttribute]
		public string Name
		{
			get { return name; }
			set { name = value; }
		}

		[XmlAttribute]
		public string Value
		{
			get { return value; }
			set { this.value = value; } // Yeah!
		}

		[XmlAttribute]
		public string Type
		{
			get { return type; }
			set { type = value; }
		}
	}
}
